﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DLV.Library.Utilities;

namespace DLV.Data.Entities
{
    public class ScheduleInfo
    {

        #region private fields

        private int _scheduleId = Null.NullInteger;
        private int _beginLocation = Null.NullInteger;
        private int _endLocation = Null.NullInteger;
        private int _createdBy = Null.NullInteger;
        private DateTime _createdDate = Null.NullDate;
        private int _updatedBy = Null.NullInteger;
        private DateTime _updatedDate = Null.NullDate;
        private int _status = Null.NullInteger;
        private int _scheduleType = Null.NullInteger;

        #endregion

        #region public properties

        public int ScheduleId
        {
            get { return _scheduleId; }
            set { _scheduleId = value; }
        }
        public int BeginLocation
        {
            get { return _beginLocation; }
            set { _beginLocation = value; }
        }
        public int EndLocation
        {
            get { return _endLocation; }
            set { _endLocation = value; }
        }
        public int CreatedBy
        {
            get { return _createdBy; }
            set { _createdBy = value; }
        }
        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }
        public int UpdatedBy
        {
            get { return _updatedBy; }
            set { _updatedBy = value; }
        }
        public DateTime UpdatedDate
        {
            get { return _updatedDate; }
            set { _updatedDate = value; }
        }
        public int Status
        {
            get { return _status; }
            set { _status = value; }
        }

        #endregion

        #region Custom

        public string BeginLocationName { get; set; }
        public string EndLocationName { get; set; }
        public string ScheduleName {
            get { return BeginLocationName + " -> " + EndLocationName; }
        }

        public int ScheduleType
        {
            get { return _scheduleType; }
            set { _scheduleType = value; }
        }

        #endregion
    }
}
